/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tesam.gedeon.service;

import com.tesam.gedeon.entity.Unit;
import java.util.List;

/**
 *
 * @author Sistema
 */
public interface UnitService {
    
    public int getCountAll();
    
    public int getCountBySearch(Unit unit);
    
    public List<Unit> getListByLimit(int startLimit, int endLimit, String dataToSort, String directionOfOrder);
    
    public List<Unit> getListBySearch(int startLimit, int endLimit, String dataToSort, String directionOfOrder ,Unit unit);
    
    public void delete(Unit unit);
    
    public int saveUnit(Unit unit);
    
    public void update(Unit unit);
    
     public String getJsonDataFromArrayList(List<Unit> listUnit, int quantityRecord);
     
     public List<Unit> getUnitById(Unit unit);
     
     public int getExistCode(Unit unit);
     
}
